import Vue from 'vue'
import Router from 'vue-router'
import Family from '@/components/Family'
import Index from '@/components/Index'
import Charm from '@/components/Charm'
import Certification from '@/components/Certification'
import NotFound from '@/components/NotFound'
import UserAgreement from '@/components/UserAgreement'
import SixHour from '@/components/SixHour'

Vue.use(Router)


export default new Router({
    // mode: 'history',
    routes: [
        {
            // path: '/family/haigou_id/:haigou_id?',
            path: '/family',
            name: 'Family',
            component: Family,
            meta: {
                title: '嗨够工会家族入驻'
            }
        },
        {
            path: '/',
            name: 'Index',
            component: Index,
            meta: {
                title: '首页'
            }
        },
        {
            path: '/charm',
            name: 'Charm',
            component: Charm,
            meta: {
                title: '魅力榜'
            }
        },
        {
            path: '/certification',
            name: 'Certification',
            component: Certification,
            meta: {
                title: 'shiming'
            }
        },
        {
            path: '/ug',
            name: 'UserAgreement',
            component: UserAgreement,
            meta: {
                title: 'ug'
            }
        }, 
        {
            path: '/404',
            name: 'NotFound',
            component: NotFound,
            meta: {
                title: '404'
            }
        }, 
        {
            path: '/six',
            name: 'SixHour',
            component: SixHour,
            meta: {
                title: '6小时魅力榜'
            }
        }


    ]
})

